@if(!isset($_GET['kfwx']))
      <div class="row">
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">微信号统计--{{count($listsCopy)}}</h3>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap"><div class="row"><div class="col-sm-6"></div><div class="col-sm-6"></div></div><div class="row"><div class="col-sm-12"><table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
                <thead>
                <tr>
                  <td>微信号</td>
                  <td>数量</td>
                </tr>
                </thead>
                <tbody>
                  @foreach($listsCopy2 as $key=>$obj)
                    <tr role="row" class="odd">      
                      <td><a href="{{url()->full()}}&kfwx={{$key}}">{{$key}}</a></td>
                      <td>{{$obj}}</td>
                    </tr>
                  @endforeach
                </tbody>
                <tfoot>
                </tfoot>
              </table></div></div></div>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
@else
    <div class="row">
      <div class="col-xs-12">
        <div class="box">
          <div class="box-header">
            <h3 class="box-title">详细统计--{{count($listsCopy)}}</h3>
          </div>
          <!-- /.box-header -->
          <div class="box-body">
            <div id="example2_wrapper" class="dataTables_wrapper form-inline dt-bootstrap"><div class="row"><div class="col-sm-6"></div><div class="col-sm-6"></div></div><div class="row"><div class="col-sm-12"><table id="example2" class="table table-bordered table-hover dataTable" role="grid" aria-describedby="example2_info">
              <thead>
              <tr>
                <td>渠道</td>
                <td>域名</td>
                <td>帐户</td>
                <td>关键词</td>
                <td>搜索词</td>
                <td>模板</td>
                <td>微信号</td>
                <td>城市</td>
                <td>创建时间</td>
              </tr>
              </thead>
              <tbody>
                @foreach($listsCopy as $key=>$obj)
                  <tr role="row" class="odd">      
                      <td>{{$obj->channel}}</td>
                    <td><a href="?op=checkdomain&domain={{$obj->domain}}">{{$obj->domain}}</a></td>
                      <td>{{returnAccout($obj->domain)}}</td>

                      <td><a target="_blank" href="{{$obj->visit_url}}">{{$obj->keyword}}</a></td>
                      @if(strstr($obj->channel,'sogou'))
                         <td><a target="_blank" href="https://wap.sogou.com/web/searchList.jsp?keyword={{$obj->skeyword}}">{{$obj->skeyword}}</a></td>
                      @elseif(strstr($obj->channel,'baidu'))
                          <td><a target="_blank" href="http://m.baidu.com/s?word={{$obj->skeyword}}">{{$obj->skeyword}}</a></td>
                      @else
                           <td><a target="_blank" href="{{$obj->referer_url}}">{{$obj->skeyword}}</a></td>
                      @endif
                      
                     
                      <td>{{$obj->template}}</td>
                      <td>{{$obj->kfwx}}</td>
                      <td>{{$obj->city}}</td>
                      <td>{{$obj->created_at}}</td>
                  </tr>
                @endforeach
              </tbody>
              <tfoot>
              </tfoot>
            </table></div></div></div>
          </div>
          <!-- /.box-body -->
        </div>
        <!-- /.box -->
      </div>
      <!-- /.col -->
    </div>
    <!-- /.row -->

@endif